package com.example.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.storage.pojo.Storage;


public interface StorageMapper extends BaseMapper<Storage> {
    void decrease(Long productId,Integer num);

    Storage selectByProductId(Long productId);

    void updateResidueToFrozen(Long productId,Integer count);

    void updateFrozenToUsed(Long productId,Integer count);

    void updateFrozenToResidue(Long productId,Integer count);
}
